
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class SensitivewordRolesensitiveCfg : public ManualSingleton <SensitivewordRolesensitiveCfg>
{
	friend ManualSingleton <SensitivewordRolesensitiveCfg>;
public:
	SensitivewordRolesensitiveCfg();
	~SensitivewordRolesensitiveCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const SensitivewordRolesensitiveCfgInfo *GetSensitivewordRolesensitiveCfgInfo(int32_t id);
	const SensitivewordRolesensitiveCfgMap *GetSensitivewordRolesensitiveCfgMap() { return &m_SensitivewordRolesensitiveCfgMap; }
private:
	SensitivewordRolesensitiveCfgMap m_SensitivewordRolesensitiveCfgMap;
};

#define  g_MakeSensitivewordRolesensitiveCfgTable() (SensitivewordRolesensitiveCfg::Instance())
#define  g_GetSensitivewordRolesensitiveCfgTable() (SensitivewordRolesensitiveCfg::GetInstance())
#define  g_DelSensitivewordRolesensitiveCfgTable() (SensitivewordRolesensitiveCfg::Destroy())